Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FRAME] Introduce force_adjust_total_issuance #3001

Merged
merged 25 commits into from
Jan 30, 2024
Merged

[FRAME] Introduce force_adjust_total_issuance #3001

merged 25 commits into from
Jan 30, 2024

Conversation

ggwpez
Copy link
Member

@ggwpez ggwpez commented Jan 19, 2024

Add Balances::force_adjust_total_issuance as preparation for fixing polkadot-fellows/runtimes#147.
Important changes in substrate/frame/balances/src/lib.rs.

TODO:

  • Update weights

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez
Copy link
Member Author

ggwpez commented Jan 19, 2024

bot bench substrate-pallet --pallet=pallet-balances
bot bench polkadot-pallet --pallet=pallet-balances --runtime=rococo

@ggwpez
Copy link
Member Author

ggwpez commented Jan 20, 2024

bot bench substrate-pallet --pallet=pallet_balances
bot bench polkadot-pallet --pallet=pallet_balances --runtime=rococo

command-bot added 3 commits January 20, 2024 10:09
@ggwpez
Copy link
Member Author

ggwpez commented Jan 20, 2024

bot bench cumulus-collectives --pallet=pallet_balances
bot bench cumulus-bridge-hubs --runtime=bridge-hub-rococo --pallet=pallet_balances
bot bench cumulus-bridge-hubs --runtime=bridge-hub-westend --pallet=pallet_balances
bot bench cumulus-assets --runtime=asset-hub-westend --pallet=pallet_balances
bot bench cumulus-assets --runtime=asset-hub-rococo --pallet=pallet_balances
bot bench cumulus-coretime --runtime=coretime-rococo --pallet=pallet_balances
bot bench cumulus-coretime --runtime=coretime-westend --pallet=pallet_balances
bot bench polkadot-pallet --runtime=westend --pallet=pallet_balances

@mordamax it could probably automatically detect where everywhere the is a pallet_balances*.rs weight file and then recommend a command, otherwise looking for them all manually is slightly annoying 😅

command-bot added 9 commits January 20, 2024 15:22
…e=westend --target_dir=polkadot --pallet=pallet_balances
…=bridge-hub-westend --runtime_dir=bridge-hubs --target_dir=cumulus --pallet=pallet_balances
…=bridge-hub-rococo --runtime_dir=bridge-hubs --target_dir=cumulus --pallet=pallet_balances
…=coretime-westend --runtime_dir=coretime --target_dir=cumulus --pallet=pallet_balances
…=coretime-rococo --runtime_dir=coretime --target_dir=cumulus --pallet=pallet_balances
…=asset-hub-westend --runtime_dir=assets --target_dir=cumulus --pallet=pallet_balances
…=asset-hub-rococo --runtime_dir=assets --target_dir=cumulus --pallet=pallet_balances
…=collectives-westend --runtime_dir=collectives --target_dir=cumulus --pallet=pallet_balances
@ggwpez ggwpez added the T2-pallets This PR/Issue is related to a particular pallet. label Jan 22, 2024
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez ggwpez marked this pull request as ready for review January 29, 2024 17:24
@ggwpez ggwpez requested a review from a team January 29, 2024 17:24
@ggwpez ggwpez requested a review from a team January 29, 2024 17:24
prdoc/pr_3001.prdoc Outdated Show resolved Hide resolved
@ggwpez
Copy link
Member Author

ggwpez commented Jan 30, 2024

bot clean

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez ggwpez added this pull request to the merge queue Jan 30, 2024
Merged via the queue into master with commit 5a6f6d3 Jan 30, 2024
121 checks passed
@ggwpez ggwpez deleted the oty-adjust-ti branch January 30, 2024 23:19
bkontur added a commit to bkontur/runtimes that referenced this pull request Feb 18, 2024
bgallois pushed a commit to duniter/duniter-polkadot-sdk that referenced this pull request Mar 25, 2024
Add `Balances::force_adjust_total_issuance` as preparation for fixing
polkadot-fellows/runtimes#147.
Important changes in `substrate/frame/balances/src/lib.rs`.

TODO:
- [x] Update weights

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: command-bot <>
Co-authored-by: Bastian Köcher <git@kchr.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T2-pallets This PR/Issue is related to a particular pallet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants